package com.rain.rainspringboot3.beanDefinitionRegistrar.controller;

import com.rain.rainspringboot3.beanDefinitionRegistrar.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestBeanController {

    @Autowired
    private OrderService orderService;

    @GetMapping("/test")
    public String test() {
        orderService.placeOrder(); // 会走代理
        return "OK";
    }
}